package com.csdj.t309.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
/**
 * <p>
 * 
 * </p>
 * @since 2022-03-05
 */
@TableName("gym_card")
@Data
public class GymCard implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 一对一映射
     */
    @TableField(exist = false)
    private CardType cardType;
    /**
     * 健身卡编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 持卡人
     */
    private String userName;

    /**
     * 健身卡类型编号
     */
    private Integer cardTypeId;

    /**
     * 卡状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 持卡人手机号
     */
    private String phone;

    /**
     * 卡内余额
     */
    private String balance;

    /**
     * 开卡日期
     */
    private LocalDate openDate;
}
